/**
 * Copyright (C) 2012 The SkyTvOS Project
 * <p/>
 * Version     Date           Author
 * ─────────────────────────────────────
 * 2014年12月27日         Root.Lu
 */

package com.coocaa.launcher.framework.launcherhost.statusbar;

import android.content.Context;

import com.coocaa.x.uipackage.BaseView;

public abstract class StatusBarHostView extends BaseView implements IStatusBarHostViewConfig {
    private IStatusBarHostViewConfig config = null;

    public StatusBarHostView(Context context) {
        super(context);
        // TODO Auto-generated constructor stub
        setFocusable(false);
        setFocusableInTouchMode(false);
    }

    public void setStatusBarHostViewConfig(IStatusBarHostViewConfig config) {
        this.config = config;
    }

    @Override
    public void config() {
        // TODO Auto-generated method stub
        if (config != null)
            config.config();
    }

    @Override
    public void clearConfig() {
        if (config != null)
            config.clearConfig();
    }

    public abstract void add(StatusBarPluginView view);

    public abstract void remove(StatusBarPluginView view);
}
